function GetNetworkGroups() {
	var myData =[
		{
			Name:'IPv4 Network Object',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'blank',expanded: true,children:[
				{Name:'All-Inside-Subnets',IP:'192.168.0.0',Netmask:'255.255.0.0',Description:'',NAT:'',iconCls:'terminal'},
				{Name:'Cisco',IP:'www.cisco.com',Netmask:'',Description:'',NAT:'',iconCls:'terminal'},
				{Name:'Corp-Mail-Server',IP:'10.10.10.60',Netmask:'',Description:'Corporate Mail Server',NAT:'',iconCls:'terminal'},
				{Name:'All-Inside-Subnets',IP:'192.168.0.0',Netmask:'255.255.0.0',Description:'',NAT:'obj-198.52.59.10-198.52.59.20',iconCls:'terminal'}
			]
		},{
			Name:'IPv6 Network Object',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'blank',expanded: true,children:[
				{Name:'any',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'terminal'}
			]
		},{
			Name:'IPv4 Network Object Groups',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'blank',expanded: true,children:[
				{Name:'all_networks',IP:'',Netmask:'',Description:'test group fir all network',NAT:'',iconCls:'terminallist',children:[
					{Name:'172.16.1.0',IP:'172.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'10.16.1.0',IP:'10.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'172.10.1.0',IP:'172.10.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'172.16.10.0',IP:'172.16.10.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'}
					
				]
				},{Name:'DMZ-networks',IP:'',Netmask:'',Description:'group for dmz network',NAT:'',iconCls:'terminallist',children:[
					{Name:'13.16.1.0',IP:'13.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'10.16.1.0',IP:'10.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'25.10.1.0',IP:'25.10.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'235.16.10.0',IP:'235.16.10.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'}
					
				]
				}
			]
		}
    ]

	var NetworkGroupsMenu = new Ext.menu.Menu({
        id: 'NetworkGroupsMenu',
        style: {
            overflow: 'visible'     // For the Combo popup
        },
        items: [
        	{
						text : 'Network Object...',
						tooltip : 'Network Object',
						handler : function() {
							AddNetworkObject();
						}
					},{
						text : 'Network Object Groups...',
						tooltip : 'Network Object Groups',
						handler : function() {
									AddNetworkObjectGroups();
						}
					}
        ]
    });
    

			
    var tree = new Ext.ux.tree.TreeGrid({
        dropConfig: {appendOnly:false},
        renderTo: Ext.getBody(),
        enableDD: true,
        columns:[{
            header: '名称',
            dataIndex: 'Name',
            width: 200
        },{
            header: 'IP',
            width: 100,
            dataIndex: 'IP'
        },{
            header: '掩码',
            width: 150,
            dataIndex: 'Netmask'
        },{
            header: '描述',
            width: 150,
            dataIndex: 'Description'
        },{
            header: '对象NAT地址',
            width: 200,
            dataIndex: 'NAT'
        }],
        tbar : [{
				            text:'添加',
				            iconCls: 'add', 
				            menu: NetworkGroupsMenu  
				        }, '-', {
									text : '编辑',
									tooltip : '编辑',
									iconCls : 'modify',
									ref : '../modifyBtn',
									id:'modifyBtn',
									name:'modifyBtn',
									handler : function() {
										SetDeviceinfo();
									}
								}, '-', {
									text : '删除',
									tooltip : '删除',
									iconCls : 'delete',
									ref : '../removeBtn',
									disabled : true,
									handler : function() {
										var s = grid.getSelectionModel().getSelections();
										for (var i = 0; r = s[i]; i++) {
											store.remove(r);
										}
									}
								}, '-', {
									text : '刷新',
									tooltip : '刷新',
									iconCls : 'refresh',
									handler : function() {							
										store.loadData(myData);
									}
							  }]
    });
    
	  tree.on("nodedragover", function(e){         
	  	       
	  	return false;     
	  }); 
	  
   	var root = new Ext.tree.TreeNode({
        text: '根节点',
        draggable : false,
        expanded: true
    });
 		tree.setRootNode(root);
 
  	var nodes = {}; 
  	nodes.children = myData;
	 	function appendChild(node, o){
	  	if (o.children != null && o.children.length > 0) {
	   		for (var a = 0; a < o.children.length; a++) {
	   			
				    /*var n = new Ext.tree.TreeNode({
				     task:o.children[a].task,
				     duration:o.children[a].duration,
				     user:o.children[a].user,
				     iconCls:o.children[a].iconCls,
				     checked:false,
				     leaf:false
				    });
				    node.appendChild(n);
				    appendChild(n, o.children[a]);*/
	  			
				    var n = new Ext.tree.TreeNode({
				     Name:o.children[a].Name,
				     IP:o.children[a].IP,
				     Netmask:o.children[a].Netmask,
				     Description:o.children[a].Description,
				     NAT:o.children[a].NAT,
				     iconCls:o.children[a].iconCls,
				     expanded:o.children[a].expanded
				    });
				    node.appendChild(n);
				    appendChild(n, o.children[a]);
	  		
	  			
	   		}
	  	}
	 	}
	 	appendChild(root, nodes);    
    
    
	
	return tree;	
}
function AddNetworkObject(){

	var states = [
		['1', 'Host'],
		['2', 'Range'],
		['3', 'Network'],
		['4', 'FQDN']
		];
	var states1 = [
		['1', '0.0.0.0'],
		['2', '255.0.0.0'],
		['3', '255.255.0.0'],
		['4', '255.255.255.0']
		];
	var states2 = [
		['1', 'Static'],
		['2', 'Dynamic PAT (Hide)'],
		['3', 'Dynamic']
		];
	var states3 = [
		['1', 'dmz'],
		['2', 'inside'],
		['3', 'mgmt'],
		['4', 'outside'],
		['5', 'partner-dmz']
		];

	var set_center = {
		xtype: 'fieldset',
		margins:'5 5 5 5',
		layout : 'form',
		region:'center',
		bodyStyle : 'padding:10px;',
		items: [
						{
								xtype : 'textfield',
								fieldLabel : 'Name',
								id : 'name',
								name : 'name',
								anchor : '100%'
						},{
								fieldLabel: 'Type',
								xtype : 'combo',
								name : 'type',
								frame : true,
								id : 'type',
								store : new Ext.data.ArrayStore({
										fields : ['abbr', 'state'],
										data : states
									}),
								valueField : 'abbr',
								displayField : 'state',
								typeAhead : true,
								mode : 'local',
								triggerAction : 'all',
								value : '3',
								editable : false,
								anchor: '100%'
						},{
								xtype : 'textfield',
								fieldLabel : 'IP Address',
								id : 'ip',
								name : 'ip',
								anchor : '100%'
						},{
								fieldLabel: 'Netmask',
								xtype : 'combo',
								name : 'Netmask',
								frame : true,
								id : 'Netmask',
								store : new Ext.data.ArrayStore({
										fields : ['abbr', 'state'],
										data : states1
									}),
								valueField : 'abbr',
								displayField : 'state',
								typeAhead : true,
								mode : 'local',
								triggerAction : 'all',
								value : '4',
								editable : false,
								anchor: '100%'
						},{
								xtype : 'textfield',
								fieldLabel : 'Description',
								id : 'Description',
								name : 'Description',
								anchor : '100%'
						},{
		            xtype:'fieldset',
		            checkboxToggle:true,
		            title: 'NAT',
		            id:'NAT',
		            autoHeight:true,
		            collapsed: false,
		            labelWidth: 120,   
								
		            items :[
		            					 { 
										            xtype: 'checkbox',
										            hideLabel:true,
										            boxLabel:'Add Automatic Address Translation Rules',
																name: 'addauto',
																id  : 'addauto'
										        },{
															fieldLabel: 'Type',
															xtype : 'combo',
															name : 'type1',
															frame : true,
															id : 'type1',
															store : new Ext.data.ArrayStore({
																	fields : ['abbr', 'state'],
																	data : states2
																}),
															valueField : 'abbr',
															displayField : 'state',
															typeAhead : true,
															mode : 'local',
															triggerAction : 'all',
															value : '1',
															editable : false,
															anchor: '100%'
													},{
													xtype : 'textfield',
													fieldLabel : 'Translated Address',
													id : 'Translated',
													name : 'Translated',
													anchor : '100%'
											}
										 ,
									   new Ext.form.CompositeField({ 
										 		hideLabel:true,
										    items: [ 
										    		
										    		{ 
										            xtype: 'checkbox',
																name: 'cdisk',
																id  : 'cdisk'
										        },{
															xtype: 'label',
															style:'padding-top: 4px; ', 
															text:'PAT Pool Translated Address:'
														},
										        new Ext.form.TextField({ 
													    name: 'my_field', 
													    flex: 1 
													  })
										         
										    ] 
									   }),
										 
										 new Ext.form.CompositeField({ 
										 	   hideLabel:true,
										    items: [ 
										    		{
															xtype: 'label',
															style:'padding-top: 4px; ', 
															text:'...'
														},
										    		{ 
										            xtype: 'checkbox',
																name: 'robin',
																id  : 'robin'
										        },{
															xtype: 'label',
															style:'padding-top: 4px; ', 
															text:'Round Robin'
														}
										         
										    ] 
									   }),new Ext.form.CompositeField({ 
										 		hideLabel:true,
										    items: [ 
										    		
										    		{ 
										            xtype: 'checkbox',
																name: 'fall',
																id  : 'fall'
										        },{
															xtype: 'label',
															style:'padding-top: 4px; ', 
															text:'Fall through to interface PAT(dest intf):'
														},{
															xtype : 'combo',
															name : 'interface1',
															frame : true,
															id : 'interface1',
															store : new Ext.data.ArrayStore({
																	fields : ['abbr', 'state'],
																	data : states3
																}),
															valueField : 'abbr',
															displayField : 'state',
															typeAhead : true,
															mode : 'local',
															triggerAction : 'all',
															value : '1',
															editable : false,
															anchor: '100%'
													}
										         
										    ] 
									   })
		            ],
		            buttonAlign:"center",
		            buttons:[{
		            	text:"Advanced...",
		            	handler : function() {
										SetAdvanced();
									}
		            	}]


		        }
	
		]
	};

	var setWindows = new Ext.Window({
				layout : 'border',
				width : 500,
				height : 470,
				title : "Add Network Object",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'server',
				items : [set_center],
				plain : true
				
			});
	setWindows.addButton({
				text : "确定",
				handler : function() {
					setWindows.close();
				}
			});
	setWindows.addButton({
				text : '取 消',
				handler : function() {
					setWindows.close();
				}
			});
	setWindows.show();
}

function SetAdvanced(){


	var states = [
		['1', '-- Any --'],
		['2', 'dmz'],
		['3', 'inside'],
		['4', 'mgmt'],
		['5', 'outside'],
		['6', 'partner-dmz']
		];
	
	var Search = new Ext.form.FormPanel({
				frame : true,
				layout : 'form',
				region : 'center',
				xtype : 'fieldset',
				bodyStyle : 'padding:0px;',
				labelWidth: 150,   
				items : [						{ 
										            xtype: 'checkbox',
										            hideLabel:true,
										            boxLabel:'Translate DNS replies for rule',
																name: 'Translate',
																id  : 'Translate'
										        },{
									            xtype:'fieldset',
									            checkboxToggle:false,
									            title: 'Interface',
									            id:'Interface',
									            autoHeight:true,
									            collapsed: false,
												      items :[
												            {
																		fieldLabel: 'Source Interface',
																		xtype : 'combo',
																		name : 'Source',
																		frame : true,
																		id : 'Source',
																		store : new Ext.data.ArrayStore({
																				fields : ['abbr', 'state'],
																				data : states
																			}),
																		valueField : 'abbr',
																		displayField : 'state',
																		typeAhead : true,
																		mode : 'local',
																		triggerAction : 'all',
																		value : '1',
																		editable : false,
																		anchor: '100%'
																  },{
																		fieldLabel: 'Destination Interface',
																		xtype : 'combo',
																		name : 'Destination',
																		frame : true,
																		id : 'Destination',
																		store : new Ext.data.ArrayStore({
																				fields : ['abbr', 'state'],
																				data : states
																			}),
																		valueField : 'abbr',
																		displayField : 'state',
																		typeAhead : true,
																		mode : 'local',
																		triggerAction : 'all',
																		value : '1',
																		editable : false,
																		anchor: '100%'
																  }
									            ]
		            						}
						]

			});


	var searchWindows = new Ext.Window({
				layout : 'border',
				width : 400,
				height : 200,
				title : "Advanced NAT Settings",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'search',
				items : [Search],
				plain : true
			});
	searchWindows.addButton({
				text : "OK",
				handler : function() {
					
					searchWindows.close();
				}
			});
	searchWindows.addButton({
				text : 'Cancel',
				handler : function() {
					searchWindows.close();
				}
			});
	searchWindows.show();
}

function AddNetworkObjectGroups(){
 	var topPanel = new Ext.form.FormPanel({
 				frame : true,
				layout : 'form',
        height: 80,
        region : 'north',
        items: [
						{
								xtype : 'textfield',
								fieldLabel : 'Group Name',
								id : 'groupname',
								name : 'groupname',
								anchor : '100%'
						},{
								xtype : 'textfield',
								fieldLabel : 'Description',
								id : 'Description1',
								name : 'Description1',
								anchor : '100%'
						}           
        ]
    });
var myData =[
		{
			Name:'IPv4 Network Object',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'blank',expanded: true,children:[
				{Name:'All-Inside-Subnets',IP:'192.168.0.0',Netmask:'255.255.0.0',Description:'',NAT:'',iconCls:'terminal'},
				{Name:'Cisco',IP:'www.cisco.com',Netmask:'',Description:'',NAT:'',iconCls:'terminal'},
				{Name:'Corp-Mail-Server',IP:'10.10.10.60',Netmask:'',Description:'Corporate Mail Server',NAT:'',iconCls:'terminal'},
				{Name:'All-Inside-Subnets',IP:'192.168.0.0',Netmask:'255.255.0.0',Description:'',NAT:'obj-198.52.59.10-198.52.59.20',iconCls:'terminal'}
			]
		},{
			Name:'IPv6 Network Object',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'blank',expanded: true,children:[
				{Name:'any',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'terminal'}
			]
		},{
			Name:'IPv4 Network Object Groups',IP:'',Netmask:'',Description:'',NAT:'',iconCls:'blank',expanded: true,children:[
				{Name:'all_networks',IP:'',Netmask:'',Description:'test group fir all network',NAT:'',iconCls:'terminallist',children:[
					{Name:'172.16.1.0',IP:'172.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'10.16.1.0',IP:'10.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'172.10.1.0',IP:'172.10.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'172.16.10.0',IP:'172.16.10.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'}
					
				]
				},{Name:'DMZ-networks',IP:'',Netmask:'',Description:'group for dmz network',NAT:'',iconCls:'terminallist',children:[
					{Name:'13.16.1.0',IP:'13.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'10.16.1.0',IP:'10.16.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'25.10.1.0',IP:'25.10.1.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'},
					{Name:'235.16.10.0',IP:'235.16.10.0',Netmask:'255.255.255.0',Description:'',NAT:'',iconCls:'terminal'}
					
				]
				}
			]
		}
    ]
    var grouptree = new Ext.ux.tree.TreeGrid({
        dropConfig: {appendOnly:false},
        layout : 'fit',
        region : 'center',
        title:'Exising Network Objects/Groups:',
        columns:[{
            header: 'Name',
            dataIndex: 'Name',
            width: 200
        },{
            header: 'IP Address',
            width: 100,
            dataIndex: 'IP'
        },{
            header: 'Netmask',
            width: 150,
            dataIndex: 'Netmask'
        },{
            header: 'Description',
            width: 150,
            dataIndex: 'Description'
        },{
            header: 'Object NAT Address',
            width: 200,
            dataIndex: 'NAT'
        }]
       
    });
    
	  grouptree.on("nodedragover", function(e){         
	  	       
	  	return false;     
	  }); 
	  
   	var grouproot = new Ext.tree.TreeNode({
        text: '根节点',
        draggable : false,
        expanded: true
    });
 		grouptree.setRootNode(grouproot);
 
  	var nodes = {}; 
  	nodes.children = myData;
	 	function groupappendChild(node, o){
	  	if (o.children != null && o.children.length > 0) {
	   		for (var a = 0; a < o.children.length; a++) {  			
				    var n = new Ext.tree.TreeNode({
				     Name:o.children[a].Name,
				     IP:o.children[a].IP,
				     Netmask:o.children[a].Netmask,
				     Description:o.children[a].Description,
				     NAT:o.children[a].NAT,
				     iconCls:o.children[a].iconCls,
				     expanded:o.children[a].expanded
				    });
				    node.appendChild(n);
				    groupappendChild(n, o.children[a]);
	  		
	  			
	   		}
	  	}
	 	}
	 	groupappendChild(grouproot, nodes);    
	var states = [
		['1', 'Host'],
		['2', 'Range'],
		['3', 'Network'],
		['4', 'FQDN']
		];
	var states1 = [
		['1', '0.0.0.0'],
		['2', '255.0.0.0'],
		['3', '255.255.0.0'],
		['4', '255.255.255.0']
		];
	    
    var leftpanel = new Ext.form.FormPanel({
				frame : true,
				layout : 'form',
				region : 'west',
				width: 350,
				items : [						{ 
										            xtype: 'radio',
										            hideLabel:true,
										            boxLabel:'Exising Network Object/Groups:',
																name: 'Exising',
																id  : 'Exising'
										        },grouptree,
										        { 
										            xtype: 'radio',
										            hideLabel:true,
										            boxLabel:'Create new network Object member:',
																name: 'Exising1',
																id  : 'Exising2'
										        },{
																xtype : 'textfield',
																fieldLabel : 'Name',
																id : 'name',
																name : 'name',
																anchor : '100%'
														},{
																fieldLabel: 'Type',
																xtype : 'combo',
																name : 'type',
																frame : true,
																id : 'type',
																store : new Ext.data.ArrayStore({
																		fields : ['abbr', 'state'],
																		data : states
																	}),
																valueField : 'abbr',
																displayField : 'state',
																typeAhead : true,
																mode : 'local',
																triggerAction : 'all',
																value : '3',
																editable : false,
																anchor: '100%'
														},{
																xtype : 'textfield',
																fieldLabel : 'IP Address',
																id : 'ip',
																name : 'ip',
																anchor : '100%'
														},{
																fieldLabel: 'Netmask',
																xtype : 'combo',
																name : 'Netmask',
																frame : true,
																id : 'Netmask',
																store : new Ext.data.ArrayStore({
																		fields : ['abbr', 'state'],
																		data : states1
																	}),
																valueField : 'abbr',
																displayField : 'state',
																typeAhead : true,
																mode : 'local',
																triggerAction : 'all',
																value : '4',
																editable : false,
																anchor: '100%'
														},{
																xtype : 'textfield',
																fieldLabel : 'Description',
																id : 'Description',
																name : 'Description',
																anchor : '100%'
														}
						]

			});

   var rightpanel = new Ext.form.FormPanel({
				frame : true,
				layout:'vbox',
				region : 'center',
				width : 70,
				layoutConfig: {
              padding:'0',
              pack:'center',
              align:'middle'
        },
				items : [						{ 
										            xtype:"button", width : 70,text:"Add >>"
										        },
										        { 
										            xtype:"button", width : 70,text:"Remove <<<"
										        }
						]

			});
	var selgrouptree = new Ext.ux.tree.TreeGrid({
        dropConfig: {appendOnly:false},
       width: 320,
        region : 'center',
        title:'Members in Group:',
        columns:[{
            header: 'Name',
            dataIndex: 'Name',
            width: 200
        },{
            header: 'IP Address',
            width: 100,
            dataIndex: 'IP'
        },{
            header: 'Netmask',
            width: 150,
            dataIndex: 'Netmask'
        },{
            header: 'Description',
            width: 150,
            dataIndex: 'Description'
        },{
            header: 'Object NAT Address',
            width: 200,
            dataIndex: 'NAT'
        }]
       
    });
    var eastpanel = new Ext.form.FormPanel({
				frame : true,
				layout : 'form',
				region : 'east',
				width: 320,
				items : [						
													{
															xtype: 'label',
															style:'padding-top: 4px; ', 
															text:'Members in Group:'
														},selgrouptree
						]

			});

        var nav = new Ext.Panel({
            region : 'west',
						layout : 'border',
						width: 400,
						items : [						
										grouptree,{
		                region:'south',
		                layout : 'form',
		                height : 200,
		                title:'Create new Network Object member:',
		                labelWidth: 150, 
		                bodyStyle:'padding:5px 5px 5px 5px',
		                items:[{
																xtype : 'textfield',
																fieldLabel : 'Name',
																id : 'name',
																name : 'name',
																anchor : '100%'
														},{
																fieldLabel: 'Type',
																xtype : 'combo',
																name : 'type',
																frame : true,
																id : 'type',
																store : new Ext.data.ArrayStore({
																		fields : ['abbr', 'state'],
																		data : states
																	}),
																valueField : 'abbr',
																displayField : 'state',
																typeAhead : true,
																mode : 'local',
																triggerAction : 'all',
																value : '3',
																editable : false,
																anchor: '100%'
														},{
																xtype : 'textfield',
																fieldLabel : 'IP Address',
																id : 'ip',
																name : 'ip',
																anchor : '100%'
														},{
																fieldLabel: 'Netmask',
																xtype : 'combo',
																name : 'Netmask',
																frame : true,
																id : 'Netmask',
																store : new Ext.data.ArrayStore({
																		fields : ['abbr', 'state'],
																		data : states1
																	}),
																valueField : 'abbr',
																displayField : 'state',
																typeAhead : true,
																mode : 'local',
																triggerAction : 'all',
																value : '4',
																editable : false,
																anchor: '100%'
														},{
																xtype : 'textfield',
																fieldLabel : 'Description',
																id : 'Description',
																name : 'Description',
																anchor : '100%'
														}]
		            		}
								]

        });
        var nav1 = new Ext.Panel({
            region: 'east',
            layout : 'border',
            width: 330,
						items : [						
													 selgrouptree
						]
        }); 
        var nav2 = new Ext.Panel({
            layout:'vbox',
						region : 'center',
						width : 70,
						layoutConfig: {
		              padding:'0',
		              pack:'center',
		              align:'middle'
		        },
						items : [						{ 
												            xtype:"button", width : 70,text:"Add >>"
												        },
												        { 
												            xtype:"button", width : 70,text:"Remove <<<"
												        }
								]
        });

	var groupWindows = new Ext.Window({
				layout : 'border',
				width : 820,
				height : 600,
				title : "Add Network Object Group",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'add',
				items : [topPanel,nav,nav1,nav2],
				plain : true
			});
	groupWindows.addButton({
				text : "OK",
				handler : function() {
					
					groupWindows.close();
				}
			});
	groupWindows.addButton({
				text : 'Cancel',
				handler : function() {
					groupWindows.close();
				}
			});
	groupWindows.show();
	}